<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cherry.js</title>
    <script src="../../Cherry.js"></script>
</head>

<body>
    <div id="app"></div>
</body>
<script>
    new CherryMain({
        app:"app",
        child:[
            new CHE_Image({
                name:"CHE_Image",
                src:"https://images.gitee.com/uploads/images/2020/0830/114314_d88721f4_5117488.png"
            }),
            new CHE_Container({
                height:20
            }),
            new CHE_Button({
                margin:5,
                text:"修改图片链接",
                methods:{
                    click:()=>{
                        $GET("#CHE_Image").setSrc("https://dss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1393700821,2679974488&fm=26&gp=0.jpg")
                    }
                }
            }),
            new CHE_Button({
                margin:5,
                text:"获取图片地址",
                methods:{
                    click:()=>{
                        console.log($GET("#CHE_Image").getSrc())
                    }
                }
            }),
        ],
        Created:()=>{

        }
    });



</script>
</html>